package com.xjcs.notetools.ui

import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.BarUtils

class SplashActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        installSplashScreen()
        BarUtils.transparentStatusBar(this)
        super.onCreate(savedInstanceState)
        Handler().postDelayed({
            ActivityUtils.startActivity(MainActivity::class.java)
            finish()
        }, 1000)   //延时1秒后跳转到MainActivity
    }

}